package com.tcm.day01;

/**
 * 位运算
 */
public class Code01_bit {

    public static void print(int num) {
        for(int i=31; i>=0; i--) {
            System.out.print((num & (1 << i)) == 0?"0":"1");
        }
    }

    public static void main(String[] args) {
        print(4);
    }

}
